<?php

class Dcmp_Component_Result_Error extends Dcmp_Component_Result_Base {

    private $_message = NULL;
    
    public function getMessage(){
    	return $this->_message;
    }
    
    public function setMessage($value){
    	$this->_message = $value;
    }

    public function execute() {
		Kd_Web::getSession()->set('error_message', $this->getMessage());
        Kd_Web::getResponse()->redirect(Kd_Web::getRouter()->buildUrl('error/index/index'));
    }
}